home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4489 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  791 b 

  1. Path: sp115.ocs.lsu.edu!not-for-mail
  2. From: garaja@unix1.sncc.lsu.edu (Rajabhushan Cherukuri)
  3. Newsgroups: comp.lang.c
  4. Subject: How to copy from Array to Array ?
  5. Date: 4 Feb 1996 17:09:55 -0600
  6. Organization: Louisiana State University
  7. Message-ID: <4f3ec3$3vp5@unix1.sncc.lsu.edu>
  8. NNTP-Posting-Host: unix1-t.sncc.lsu.edu
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Hello Everybody:
  12.         I have a simple question on using Arrays and Pointers. Let's say
  13. that i have two arrays declared as,
  14.           double Array1[15000], and char Array2[15000].
  15.     How do i sequentially copy elements from Array1 to Array2 using "sprintf"
  16. and "pointers" and how i can print the values in Array2. Any suggestions
  17. will be appreciated.
  18.  
  19. RAJABHUSHAN CHERUKURI (RAJ)
  20. LOUISIANA STATE UNIVERSITY
  21. garaja@unix1.sncc.lsu.edu
  22.